﻿@using WishClaim.Web.Controllers
@model EventViewModel
@{
    
    ViewBag.Title = "Create";
}

<h2>Create a new Event</h2>

@using (Html.BeginForm("Save", "Event", FormMethod.Post))
{
<table>
<tr>
<td><label for="CurrentEmail">Your email address</label></td>
<td>@Html.EditorFor(m => m.CurrentEmail)</td>
</tr>
<tr>
<td><label for="Name">Name</label></td>
<td>@Html.EditorFor(m => m.Name)</td>
</tr>
<tr><td><label for="DateOfEvent">Date</label></td>
<td>@Html.EditorFor(m => m.DateOfEvent)</td></tr>
<tr>
<td><label for="PasswordKey">Event key</label></td>
<td>@Html.DisplayFor(m => m.PasswordKey)</td></tr>
</table>
@Html.HiddenFor(m => m.PasswordKey)
<button type="submit">Create</button>

}